package work20241202_chap5oop;

/**
 * @author zdl
 * @date 2024/12/2
 */
class ClassA{
    public void method(int value){
        System.out.println(value);
    }
    public void method(){
        System.out.println(value);
    }
    int value;
}
class Demo2{
    public static void main(String args[]){
        ClassA classA = new ClassA();
        classA.value = 10;
        classA.method(); //10
        classA.method(20);//20
    } }
